





def roleM():
    data = get_data()
    sql = "select if from roles where name='%s'"%(data['name'])
    res=db1.find(sql)
    if res:
        return jsonify({"code":20010})
    else:
        sql1 = "insert into roles values(0,'%s')"%(data['name'])
        db1_undate(sql1)
